package org.club.Service;


import org.club.common.WebSocket.WebSocketMessage;
import org.club.common.util.ApiResponseMe;
import org.springframework.http.ResponseEntity;
import org.springframework.messaging.simp.SimpMessageHeaderAccessor;

public interface IWebSocketService {

    /**
     * 处理接收到的WebSocket消息
     * @param message        接收到的消息对象
     * @param headerAccessor
     * @return
     */
    ResponseEntity<ApiResponseMe> handleMessage(WebSocketMessage message, SimpMessageHeaderAccessor headerAccessor);

}